﻿using System;
using System.Collections.Generic;
using System.Net;
using System.Text;

namespace Marmat.Common.Http
{
    /// <summary>
    /// 表示Http响应的消息，可以用于自行解析返回的请求。
    /// </summary>
    public class HttpResponseMessage : IDisposable
    {
        /// <summary>
        /// http响应包装器抽象类
        /// </summary>
        /// <param name="httpResponse">响应消息</param>
        public HttpResponseMessage(HttpWebResponse httpResponse)
        {
            this.HttpResponse = httpResponse;
        }

        /// <summary>
        /// 获取响应消息
        /// </summary>
        protected HttpWebResponse HttpResponse { get; }

        public void Dispose()
        {
            this.HttpResponse.Dispose();
        }
    }
}
